<?php include'views/templates/layouts/backend/header.php'; ?>
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>
								</span>
                    <h5>Text inputs</h5>
                </div>
                <div class="widget-content nopadding">
					<?php
					while($row = mysqli_fetch_array($artPro))
					{
						?>
                    <form action="index.php?controller=product&action=edit" method="POST" class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label">Title</label>
                            <div class="controls">
                                <input type="hidden" name="id" value="<?php echo $row[0] ?>">
                                <input type="text" name="title" value="<?php echo $row['title'] ?>"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Content</label>
                            <div class="controls">
                                <textarea  name="content"><?php echo $row['content'] ?></textarea>
                            </div>
                        </div>
						<div class="control-group">
                            <label class="control-label">Img</label>
                            <div class="controls">
                                <img src="<?php echo SITE_URL."/media/img/".$row['image']; ?>"/>
                            </div>
                        </div>
					<!--	<div class="widget-box">
							<div class="widget-content nopadding">
								<div class="control-group">
									<label class="control-label">Image</label>
									<div class="controls">
										<div class="uploader" id="uniform-undefined">
											<input name="image" type="file" size="19" style="opacity: 0;">
											<span class="filename">No file selected</span>
											<span class="action">Choose File</span>
										</div>
									</div>
								</div>
							</div>
                        </div> Noi upload anh -->
						<div class="control-group">
                            <label class="control-label">Category</label>
                            <div class="controls">
                                <select name="cat[]" multiple>
                                   <?php 
                                        while($row = mysqli_fetch_array($idCat))
										//var_dump($row); exit();
                                        {
                                   ?>
                                        <option value="<?php echo $row['id'];?>"><?php echo $row['nameCat']; ?></option>
                                   <?php
                                         }
                                   ?>
                                </select>
                            </div>
                        </div>
						
                        <div class="form-actions">
                            <button name="btn_submit" type="submit" class="btn btn-primary">Save</button>
                        </div>
                    </form>
					<?php }?>
                </div>
            </div>
        </div>
    </div>

<?php include'views/templates/layouts/backend/footer.php'; ?>